﻿using System;
using ActiveDirectoryService.Library.Entities;
using LinqToLdap;
using LinqToLdap.Mapping;

namespace ActiveDirectoryService.Library.Web
{
    public class Global : System.Web.HttpApplication
    {
        private void ApplicationStart(object sender, EventArgs e)
        {
            new LdapConfiguration()
                .MaxPageSizeIs(1000)
                .AddMapping(new AttributeClassMap<ADGroup>())
                .AddMapping(new AttributeClassMap<ADUser>());
        }
    }
}